package org.example.designpattern.visitor;

public class PMVisitor implements Visitor {

    @Override
    public void visit(Product product) {
        System.out.println(product.getName() + " finish products:" + product.getFinishProducts());
    }

    @Override
    public void visit(Developer developer) {
        System.out.println(developer.getName() + " write codes:" + developer.getCodelines());
    }
}
